package com.jdk.learn.juc2.thread.excrise;

import com.other.HttpUtils;

/**
 * 类功能描述:
 *
 * @author bgt
 * @version V1.0
 * @since 2019-03-06 10:36
 */
public class ThreadBlocked {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            try {
//                TimeUnit.SECONDS.sleep(1000);
                HttpUtils.sendGet("http://localhost:8888/psc/searchdrug", "");
            } catch (Exception e) {
                e.printStackTrace();
            }
        },"ricky");

        thread.start();

    }
}
